#pragma once

#include <chrono>

namespace Lab1
{
    class DataReader;

    class DataAReader
    {
    public:
        static const std::chrono::milliseconds ResponseTime;

        explicit DataAReader( DataReader * reader );
        void start( int iterations, bool errorEnd );

    protected:
        void read();

    private:
        DataReader * reader;
        void sleepThread();
    };
}
